<html><head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Definition" rel="Chapter" href="Definition.html"><title>Definition.perso2string</title>
</head>
<body>
<code class="code"><span class="keyword">let</span>&nbsp;<span class="keyword">rec</span>&nbsp;perso2string&nbsp;pers=<br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">match</span>&nbsp;pers&nbsp;<span class="keyword">with</span>&nbsp;<span class="keywordsign">|</span><span class="constructor">Unknown</span>&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="string">"Unknown"</span>&nbsp;<span class="keywordsign">|</span>&nbsp;<span class="constructor">Loup</span>&nbsp;<span class="keywordsign">-&gt;</span><span class="string">"Loup"</span><span class="keywordsign">|</span><span class="constructor">Villageois</span><span class="keywordsign">-&gt;</span><span class="string">"Villageois"</span><span class="keywordsign">|</span><span class="constructor">Voyante</span><span class="keywordsign">-&gt;</span><span class="string">"Voyante"</span><span class="keywordsign">|</span><span class="constructor">Sorciere</span><span class="keywordsign">-&gt;</span><span class="string">"Sorciere"</span><span class="keywordsign">|</span><span class="constructor">Mort</span>&nbsp;persbis<span class="keywordsign">-&gt;</span>&nbsp;(perso2string&nbsp;persbis)^<span class="string">"&nbsp;(Mort)"</span></code></body></html>